#pragma once



//+------------------------------------------------------------------+
DWORD WINAPI	PreviewThread(LPVOID lpParam);
void				ExitPreviewThread();
extern bool		StopPreview;				// stop playing preview file

//+------------------------------------------------------------------+
DWORD WINAPI	InputThread(LPVOID lpParam);
DWORD WINAPI	VideoThread(LPVOID lpParam);
void				ExitInputAndVideoThread();
extern bool		StopSong;

//+------------------------------------------------------------------+
DWORD WINAPI	TestingThread(LPVOID lpParam);
void				ExitTestingThread();
extern bool		StopOptimizing;

//+------------------------------------------------------------------+
//	Updates the window caption with the fps.
//	Should be called once every frame. Returns current FPS.
double UpdateCaption(LPCWSTR text = NULL);

//+------------------------------------------------------------------+
void SelectSong();
void PlaySong();

